Trusted-code generated requests

ABSTRACT

Custom policies are definable for use in a system that enforces policies. A user, for example, may author a policy using a policy language and transmit the system through an application programming interface call. The custom policies may specify conditions for computing environment attestations that are provided with requests to the system. When a custom policy applies to a request, the system may determine whether information in the attestation is sufficient for the request to be fulfilled.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 15/619,979, filed Jun. 12, 2017, entitled “TRUSTED-CODE GENERATED REQUESTS,” which is a continuation of U.S. patent application Ser. No. 14/225,249, filed Mar. 25, 2014, now Issued U.S. Pat. No. 9,680,872, entitled “TRUSTED-CODE GENERATED REQUESTS,” the disclosures of which are incorporated herein in their entirety. This application also incorporates by reference for all purposes the full disclosure of co-pending U.S. patent application Ser. No. 14/225,300, filed Mar. 25, 2014, now Issued U.S. Pat. No. 9,854,001, entitled “TRANSPARENT POLICIES.”

BACKGROUND

The security of computing resources and associated data is of high importance in many contexts. As an example, organizations often utilize networks of computing devices to provide a robust set of services to their users. Networks often span multiple geographic boundaries and often connect with other networks. An organization, for example, may support its operations using both internal networks of computing resources and computing resources managed by others. Computers of the organization, for instance, may communicate with computers of other organizations to access and/or provide data while using services of another organization. In many instances, organizations configure and operate remote networks using hardware managed by other organizations, thereby reducing infrastructure costs and achieving other advantages. With such configurations of computing resources, ensuring that access to the resources and the data they hold is secure can be challenging, especially as the size and complexity of such configurations grow. In some instances, malicious behavior attempting to gain unauthorized access to computing resources includes the submission of requests made pursuant to unauthorized executable code, such as code that was authored for the purpose of attempting unauthorized access or by authorized code that has been infected and, as a result, has become modified. Detecting and preventing such unauthorized access is a complex undertaking, especially when data is stored throughout a distributed system.

BRIEF DESCRIPTION OF THE DRAWINGS

Various embodiments in accordance with the present disclosure will be described with reference to the drawings, in which:

FIG. 1 shows a diagram illustrating various aspects of the present disclosure;

FIG. 2 shows an illustrative example of an environment in which various embodiments can be practiced;

FIG. 3 shows an illustrative example of a cryptography service in accordance with at least one embodiment;

FIG. 4 shows an illustrative example of a service in accordance with at least one embodiment;

FIG. 5 shows an illustrative example of a policy management service in accordance with at least one embodiment;

FIG. 6 shows an illustrative example of a policy document in accordance with at least one embodiment;

FIG. 7 shows an illustrative example of a policy statement in accordance with at least one embodiment;

FIG. 8 shows an illustrative example of a process for processing a request in accordance with at least one embodiment;

FIG. 9 shows a diagram illustrating components of an example computer system in accordance with at least one embodiment;

FIG. 10 shows an illustrative example of a process for submitting a request in accordance with at least one embodiment;

FIG. 11 shows an illustrative example of a process for providing an application certificate in accordance with at least one embodiment;

FIG. 12 shows an illustrative example of a process for determining whether to fulfill a request in accordance with at least one embodiment;

FIG. 13 shows an illustrative example of a user interface that may be used to programmatically define a policy in accordance with at least one embodiment; and

FIG. 14 shows an illustrative example of an environment in which various embodiments can be implemented.

DETAILED DESCRIPTION

In the following description, various embodiments will be described. For purposes of explanation, specific configurations and details are set forth in order to provide a thorough understanding of the embodiments. However, it will also be apparent to one skilled in the art that the embodiments may be practiced without the specific details. Furthermore, well-known features may be omitted or simplified in order not to obscure the embodiment being described.

Techniques described and suggested herein relate to the enforcement of policy based at least in part on the state of a computing environment. In various embodiments, a service provider computer system provides an interface through which users are able to programmatically manage policies that are enforced in connection with access to various resources (e.g., computing resources hosted by the service provider and programmatically managed remotely by customers of the service provider). In some embodiments, users are able to, through appropriately configured computing devices, transmit application programming interface (API) calls over a network for the purpose of defining and/or otherwise managing policies to be enforced by the computer system. In some examples, the API calls are web service requests transmitted over a communications network, such as the Internet. As discussed in more detail below, users are provided the ability to define policies by defining conditions for application of policies. The policies may encode, for instance, principals (e.g., users), resources and actions to which policies apply, conditions for when the policies apply, and actions to be taken when the policies apply.

In various embodiments, a service provider computer system is configured to enable policies to be defined based at least in part on information indicative of a state of a computing environment from which requests for access to resources are submitted. In one example, policies may be defined to require that a device submitting a request is compliant with certain requirements. Example requirements include requirements regarding approved applications (e.g., user agents) used to submit requests, requirements regarding applications being in an unmodified state, requirements as to locally stored files, requirements as to sensor-made measurements, requirements as to an identity of a computer system submitting a request and other requirements. To enforce such requirements, various embodiments of the present disclosure allow users to define policies using attestations from cryptographic modules (e.g., trusted platform modules (TPMs)) of devices that generate attestations and/or submit requests where the attestations are cryptographically verifiable as authentic, although the techniques of the present disclosure are applicable to other types of attestations, such as attestations that are not cryptographically verifiable and/or attestations made by other devices.

In various embodiments, requests from computing devices to a system having a policy enforcement component submit the requests with attestations as to the computing environments in which the requests and/or attestations are generated and/or from which the requests are submitted. For instance, a request from a computing device may include a remote attestation generated by a TPM of the computing device and a certificate usable to cryptographically verify the remote attestation. The system to which the request is submitted may detect the applicability of a user-defined policy that is at least partly dependent from a computing environment state. To determine whether the policy allows fulfillment of the request, the system may cryptographically verify the authenticity of the attestation using the certificate provided with the request, which may include cryptographically verifying the authenticity of the certificate (e.g., that the certificate was issued from a valid certificate authority). On a condition that the attestation is authentic, information in the attestation may be examined to determine whether the request complies with the policy. Depending on whether fulfillment of the policy complies with the request, the system may then take one or more actions, such as fulfilling the request or denying the request, as appropriate. Numerous variations, including some discussed in more detail below, are also considered as being within the scope of the present disclosure.

FIG. 1 shows an illustrative example of an environment 100 in which various embodiments can be practiced. In this example, the environment 100 includes a requestor 102 and a policy evaluation system 104. The requestor 102 may be a computing device (perhaps operated by a human operator and/or an automated process), such as any of the computing devices listed below. The policy evaluation system 104 may be a component of a computing environment (e.g., service provider computing environment) configured to evaluate policies for the purpose of determining whether to fulfill requests. Example configurations and implementations of policy evaluation systems are discussed in more detail below. Generally, the policy evaluation system 104 may be any system configured to evaluate policies generated in accordance with various techniques described herein.

As illustrated in FIG. 1, the requestor 102 is configured to generate and provide a software attestation 106 to the policy evaluation system 104, such as over one or more networks. In various embodiments, the requestor 102 provides the software attestation 106 to the policy evaluation system 104 indirectly. In some embodiments, the requestor 102 is configured with executable instructions that, when executed by one or more processors of the requestor 102, cause the requestor to generate a web service request that includes an attestation generated in accordance with one or more techniques described herein. The requestor 102 may be configured to format the web service request in accordance with formatting acceptable to a system to which the web service request is submitted. Further, the requestor 102 may be configured to generate the web service request to include information necessary and/or sufficient to cause the web service request to be fulfilled. Such information may include, for example, identifying information of a customer of multiple customers of a service provider to which the web service request is submitted, authentication information (e.g., digital signature of the web service request) sufficient to be authenticated by the system to which the request is submitted or by another system operating in connection therewith (such as an authentication subsystem utilized by a service to which the web service request is submitted). The authentication information may be generated, for example, by calculating the value of a cryptographic hash function applied to at least a portion of the request and a cryptographic key, which may be a symmetric cryptographic key shared as a secret between the customer and the service provider.

In some embodiments, the software attestation 106 is provided with a request transmitted to a webserver of a web service interface of a service provider that utilizes the policy evaluation system 104. The webserver or another system operating in connection with the webserver (e.g., application server) may provide the software attestation 106 to the policy evaluation system (e.g., with the request or separate from the request) to obtain a determination whether the request should be fulfilled. The policy evaluation system 104 may be configured to analyze the information contained in the software attestation 106 to determine whether any conditions dependent on information in the software attestation 106 are fulfilled and, therefore, whether the request should be fulfilled. The policy evaluation system 104 may provide information indicative of whether the request should be fulfilled to an appropriate system (e.g., webserver that received the request).

As indicated by the lock icon on the software attestation 106, the software attestation 106 may be cryptographically verifiable. In some embodiments, the software attestation 106 is generated to prevent fake attestations from being usable to obtain access to a system. In some embodiments, for example, a TPM of the requestor 102 generates the attestation and digitally signs the attestation using a private key of a public-private key pair. The TPM may provide the requestor the attestation and a certificate containing the public key of the public-private key pair to the requestor for inclusion with the response. The certificate may itself be digitally signed by a certificate authority (e.g., the manufacturer of the TPM or system working therewith) to enable a determination that the certificate is valid and, therefore, usable to verify the authenticity of the attestation. As another example, an attestation may be generated utilizing an ARM trust zone of a processor configured with an ARM architecture (ARM processor). The ARM processor may, for example, execute code such that execution of the code utilizes a cryptographic key configured into the ARM processor, where the cryptographic key is inaccessible outside of the ARM trust zone. The code being executed by the ARM processor may be used by the ARM processor to generate an attestation of other code, such as software whose execution does not enable access to/use of the cryptographic key. Other variations are also considered as being within the scope of the present disclosure, such as computing environment attestations generated using a credential maintained in a trusted execution area of a processor, where the credential is inaccessible outside of the trusted execution area of the processor (i.e., inaccessible to areas of the processor executing code outside of the trusted execution area). In this manner, attestations are essentially unforgeable and any attempted modification to the attestation would result in the digital signature failing to validate. While digital signatures are used extensively throughout for illustration of a technique for providing cryptographic verifiability, other ways of making information (e.g., attestations) cryptographically verifiable may be used instead of or in addition to digital signatures. For example, an attestation may be encrypted and the ability to decrypt the attestation may suffice for authenticity.

FIG. 2 shows an illustrated example of an environment 200 in which various embodiments of the present disclosure may be practiced. In the environment 200, a computing resource service provider 202 may provide a variety of services to a customer 204. The customer 204 may be an organization that may utilize the various services provided by the computing resource service provider 202 to maintain and deliver information to its employees, which may be located in various geographical locations. Additionally, the customer 204 may be an individual that could utilize the various services to deliver content to a working group located remotely. As illustrated in FIG. 2, the customer 204 may communicate with the computing resource service provider 202 through one or more communications networks 206, such as the Internet. Some communications from the customer 204 to the computing resource service provider 202 may cause the computing resource service provider 202 to operate in accordance with various techniques described herein or variations thereof.

As noted above, a computing resource service provider 202 may provide various computing resource services to its customers. The services provided by the computing resource service provider, in this example, include a virtual computer system service 208, a block-level data storage service 210, a cryptography service 212 (also referred to as a key management service), an on-demand data storage service 214 and one or more other services 216, although not all embodiments of the present disclosure will include all such services and additional services may be provided in addition to or as an alternative to services explicitly described herein. Each of the services may include one or more web service interfaces that enable the customer 204 to submit appropriately configured API calls to the various services through web service requests. In addition, each of the services may include one or more service interfaces that enable the services to access each other (e.g., to enable a virtual computer system of the virtual computer system service 208 to store data in or retrieve data from the on-demand data storage service and/or to access one or more block-level data storage devices provided by the block data storage service). In some embodiments, the customers and services utilize the same interface to submit requests to a service.

The virtual computer system service 208 may be a collection of computing resources (e.g., collection of devices) configured to instantiate virtual machine instances onto virtual computing systems on behalf of the customers 204 of the computing resource service provider 202. Customers 204 of the computing resource service provider 202 may interact with the virtual computer systems' service (via appropriately configured and authenticated API calls) to provision and operate virtual computer systems that are instantiated on physical computing devices hosted and operated by the computing resource service provider 202. The virtual computer systems may be used for various purposes, such as to operate as servers supporting a website, to operate business applications or, generally, to serve as computing power for the customer. Other applications for the virtual computer systems may be to support database applications, electronic commerce applications, business applications and/or other applications.

The block-level data storage service 210 may comprise a collection of computing resources that collectively operate to store data for a customer 204 using block-level storage devices (and/or virtualizations thereof). The block-level storage devices of the block-level data storage service 210 may, for instance, be operationally attached to virtual computer systems provided by the virtual computer system service 208 to serve as logical units (e.g., virtual drives) for the computer systems. A block-level storage device may enable the persistent storage of data used/generated by a corresponding virtual computer system where the virtual computer system service 208 may only provide ephemeral data storage.

As illustrated in FIG. 2, the computing resource service provider 202 may operate a cryptography service 212, which is described in more detail below in connection with FIG. 3. Generally, the cryptography service may be a collection of computing resources collectively configured to manage and use cryptographic keys for customers of the computing resource service provider. Keys used by the cryptography service 212 may have associated identifiers that the customers can reference when submitting requests to perform cryptographic operations (such as encryption, decryption and message signing) and/or other operations, such as key rotation. The cryptography service may securely maintain the cryptographic keys to avoid access by unauthorized parties. Customers and/or other services of the computing resource service provider may specify, using key identifiers, keys to be used in performing cryptographic operations. Further, the cryptography service 212 may perform cryptographic operations using an implicitly defined (e.g., default) key for a customer and/or service. As an example, a data storage service may submit requests to the cryptography service 212 to encrypt encryption keys used to encrypt data stored by the data storage service and the cryptography service 212 may use a default master key for the data storage service.

The computing resource service provider 202 may also include an on-demand data storage service. The on-demand data storage service 214 may be a collection of computing resources configured to synchronously process requests to store and/or access data. The on-demand data storage service 214 may operate using computing resources (e.g., databases) that enable the on-demand data storage service 214 to locate and retrieve data quickly, so as to allow data to be provided in responses to requests for the data. For example, the on-demand data storage service may maintain stored data in a manner such that, when a request for a data object is retrieved, the data object can be provided (or streaming of the data object can be initiated) in a response to the request. As noted, data stored in the on-demand data storage service 214 may be organized into data objects. The data objects may have arbitrary sizes except, perhaps, for certain constraints on size. Thus, the on-demand data storage service 214 may store numerous data objects of varying sizes. The on-demand data storage service 214 may operate as a key value store that associates data objects with identifiers of the data objects which may be used by the customer 204 to retrieve or perform other operations in connection with the data objects stored by the on-demand data storage service 214. The on-demand data storage service 214 may also be accessible to the cryptography service 212. For instance, in some embodiments, the cryptography service utilizes the on-demand data storage service to store keys of the customers in encrypted form, where keys usable to decrypt the customer keys are accessible only to particular devices of the cryptography service 212. Access to the data storage service by a customer, another service, or other entity may be through appropriately configured API calls.

In the environment illustrated in FIG. 2, a notification service 216 is included. The notification service 216 may comprise a collection of computing resources collectively configured to provide a web service or other interface and browser-based management console that can be used to create topics customers want to notify applications (or people) about, subscribe clients to these topics, publish messages, and have these messages delivered over clients' protocol of choice (i.e., HTTP, email, SMS, etc.). The notification service may provide notifications to clients using a “push” mechanism without the need to periodically check or “poll” for new information and updates. The notification service may be used for various purposes such as monitoring applications executing in the virtual computer system service, workflow systems, time-sensitive information updates, mobile applications, and many others.

The computing resource service provider 202 may additionally maintain one or more other services 218 based on the needs of its customers 204. For instance, the computing resource service provider 202 may maintain a database service for its customers 204. A database service may be a collection of computing resources that collectively operate to run one or more databases for one or more customers 204. Customers 204 of the computing resource service provider 202 may operate and manage a database from the database service by utilizing appropriately configured API calls. This, in turn, may allow a customer 204 to maintain and potentially scale the operations in the database. Other services include, but are not limited to, object-level archival data storage services, services that manage and/or monitor other services and/or other services.

As illustrated in FIG. 2, the computing resource service provider 202, in various embodiments, includes an authentication service 220 and a policy management service 222. The authentication service, in an embodiment, is a computer system (i.e., collection of computing resources) configured to perform operations involved in authentication of users of the customer. For instance, one of the services may provide information from the users to the authentication service to receive information in return that indicates whether or not the user requests are authentic. Determining whether user requests are authentic may be performed in any suitable manner and the manner in which authentication is performed may vary among the various embodiments. For example, in some embodiments, users electronically sign messages (i.e., computer systems operated by the users electronically sign messages) that are transmitted to a service. Electronic signatures may be generated using secret information (e.g., a private key of a key pair associated with a user) that is available to both an authenticating entity (e.g., user) and the authentication service. The request and signatures for the request may be provided to the authentication service which may, using the secret information, compute a reference signature for comparison with the received signature to determine whether the request is authentic. Message verification may also be performed using asynchronous cryptography and the keys used by the various parties may be selected accordingly.

If the request is authentic, the authentication service may provide information to the service that the service can use to determine whether to fulfill a pending request and/or to perform other actions, such as prove to other services, such as the cryptography service, that the request is authentic, thereby enabling the other services to operate accordingly. For example, the authentication service may provide a token that another service can analyze to verify the authenticity of the request. Electronic signatures and/or tokens may have validity that is limited in various ways. For example, electronic signatures and/or tokens may be valid for certain amounts of time. In one example, electronic signatures and/or tokens are generated based at least in part on a function (e.g., a Hash-based Message Authentication Code) that takes as input a timestamp, which is included with the electronic signatures and/or tokens for verification. An entity verifying a submitted electronic signature and/or token may check that a received timestamp is sufficiently current (e.g., within a predetermined amount of time from a current time) and generate a reference signature/token using for the received timestamp. If the timestamp used to generate the submitted electronic signature/token is not sufficiently current and/or the submitted signature/token and reference signature/token do not match, authentication may fail. In this manner, if an electronic signature is compromised, it would only be valid for a short amount of time, thereby limiting potential harm caused by the compromise. It should be noted that other ways of verifying authenticity are also considered as being within the scope of the present disclosure.

The policy management service 222, in an embodiment, is a computer system configured to manage policies on behalf of customers of the computing resource service provider. The policy management service 222 may include an interface that enables customers to submit requests related to the management of policy. Such requests may, for instance, be requests to add, delete, change or otherwise modify policy for the customer or for other administrative actions, such as providing an inventory of existing policies and the like. The policy management service 222 may also interface with other services to enable the services to determine whether the fulfillment of a pending request is allowable according to policy corresponding to the customer for which the request was made. For example, when a service receives a request, the service (if it has not locally cached such information) may transmit information about the request (and/or the request itself) to the policy management system which may analyze policies for the customer to determine whether existing policy of the customer allows fulfillment of the request and provide information to the service according to the determination.

It should be noted that, as with all embodiments explicitly illustrated herein, variations are considered as being within the scope of the present disclosure. For example, some or all operations performed by the authentication service 220 and policy management service 222 may be combined into a single service. A single service may, for example, receive requests to verify pending customer requests and, as part of verifying pending customer requests, may determine whether electronic signatures are valid and whether any applicable policies prevent fulfillment of the request (or whether any applicable policies allow fulfillment of the request where such is required for fulfillment). Further, one or more operations performed by the authentication service 220 and/or the policy management service 222 may be performed by other services themselves without communication with the authentication service 220 or policy management service 222. Services may, for instance, have their own authentication and/or policy evaluation engines, where the authentication and/or policy evaluation engines may be updated by a central authentication service 220 and/or policy management service 222.

As discussed above, various embodiments of the present disclosure are directed to providing cryptography services. Cryptography services may be provided by a cryptography service system such as described above. FIG. 3 accordingly shows an illustrative example of a cryptography service 300 in accordance with various embodiments. As illustrated in FIG. 3 and as discussed above, the cryptography service 300 is logically comprised of a frontend system and a backend system. Both the frontend system and the backend system may be implemented by one or more computer systems configured to perform operations described herein. For example, as illustrated in FIG. 3, the frontend system of the cryptography service 300 implements a request API and a policy configuration API. The request API, in an embodiment, is an API configured for requesting cryptographic and other operations to be performed by the cryptography service. Thus, requests may be made to the frontend system via the request API in order for such cryptographic operations to be performed by the cryptography service.

The request API may be configured with the following example, high-level, requests available:

CreateKey(KeyID)

Encrypt(KeyID, Data, [AAD])

Decrypt(KeyID, Ciphertext, [AAD])

Shred(KeyID)

ReKey(Ciphertext, OldKeyID, NewKeyID).

A CreateKey(KeyID) request, in an embodiment, causes the cryptography service to create a key identified by the KeyID identified in the request. Upon receipt of a request, the cryptography service may generate a key and associate the key with the KeyID. It should be known that KeyID's may be, but are not necessarily unique identifiers. For instance, a KeyID may identify a family of keys. For example, in some embodiments, key rotation is performed. Key rotation may involve replacing keys with other keys to prevent collection of enough decrypted data to allow practical cracking of a cipher used. If performed at the direction of an entity different from the cryptography service, use of the CreateKey(KeyID) request may cause the cryptography service to create a new key to replace an old key identified by the KeyID. The old key may remain identified by the KeyID, but may, for instance, be only used for decryption (of data that has already been encrypted using the old key) and not for future encryption. As another example, in some embodiments, users of the cryptography service provide their own key identifiers and there is a possibility that two different customers may provide the same identifier. In such instances, the identifier may not uniquely identify a key or even uniquely identify a family of keys. Various measures may be in place to address this. For example, an identity or other information associated with a user of the cryptography service may be used to identify the proper key or family of keys. In still other embodiments the cryptographic service may assign a KeyID randomly, sequentially, or using any other method.

It should be noted that, when a KeyID does not uniquely identify a key, various systems may be in place to enable proper functionality. For example, in various embodiments, a family of keys identified by a KeyID is finite. If a decryption operation using a key identified by a KeyID is requested, additional data (e.g., a time stamp of when the encryption was performed) may enable determining the proper key to use. In some embodiments, ciphertexts may include information indicating a key version. In some embodiments, all possible keys are used to provide different decryptions of the data. Since there are a finite number of keys, the proper decryption may be selected from those provided. In some embodiments, decryption with a key is performed in a manner that enables the cryptographic service to detect that the ciphertext was not generated based at least in part on the key, such as by using authenticated encryption. Other variations are also considered as being within the scope of the present disclosure.

An Encrypt(KeyID, Data, [AAD]) request may be used to cause the cryptography service to encrypt the specified data using a key identified by the KeyID. Additional Authenticated Data (AAD) may be used for various purposes and may be data that is not necessarily encrypted, but that is authenticated, e.g., by an electronic signature, a message authentication code or, generally, a keyed hash value included with the AAD. In some embodiments, the ciphertext is generated including at least a portion of the AAD. In some other embodiments the AAD is provided separately during decryption. In some other embodiments, the AAD is generated at decryption time based at least in part on the request and or other metadata such that decryption will only succeed when the metadata passes. In some embodiments, policy may constrain whether a cryptographic operation can be performed with respect to particular AAD. Processing of Encrypt(KeyID, Data, [AAD]) requests may require, by programming logic and/or policy enforced by the cryptography service, both that the AAD contain particular values and that the AAD be authentic (e.g., not modified since original transmission). Similarly, a Decrypt(KeyID, Ciphertext, [AAD]) request may be used to cause the cryptography service to decrypt the specified ciphertext using a key identified by the KeyID. The AAD in the Decrypt(KeyID, Ciphertext, [AAD]) request may be used such as described above. For instance, processing of the Decrypt(KeyID, Ciphertext, [AAD]) may require, by programming logic and/or policy enforced by the cryptography service, both that the AAD contain particular values and that the AAD be authentic (e.g., not modified since original transmission).

The Shred(KeyID), in an embodiment, may be used to cause the cryptography service to electronically shred a key or family of keys identified by the specified KeyID. Electronic shredding may include making the key no longer accessible. For example, use of the Shred(KeyID) request may cause the cryptography system to command one or more hardware devices to perform a SecureErase operation on one or more keys identified by the specified KeyID. Generally, the key(s) identified by the KeyID may be electronically shredded in any suitable manner, such as by overwriting data encoding the key with other data (e.g., a series of zeros or ones or a random string). If the key(s) are stored encrypted under a key, the key used to encrypt the keys may be electronically shredded, thereby causing a loss of access to the key(s). In some embodiments, the shred operation may cause decrypt operations indicating the shredded KeyID to fail at some determined point in the future. Other manners of securely and permanently destroying any possible access to the key(s) may be used.

The ReKey(Ciphertext, OldKeyID, NewKeyID) request, in an embodiment, may be used to cause the cryptography service to encrypt ciphertext under a different key. When the cryptography service receives a ReKey(Ciphertext, OldKeyID, NewKeyID) request, it may use a key identified by the OldKeyID to decrypt the specified ciphertext and then use a key identified by the NewKeyID to encrypt the decrypted ciphertext. If a key identified by the NewKeyID does not yet exist, the cryptography service may generate a key to use and associate the generated key with the specified NewKeyID, such as described in connection the Create(KeyID) request described above. In some embodiments, the ReKey operation may be operable to cause data to be transferrable between isolated instances of a cryptography service. In some embodiments, a policy might permit a rekey operation to be performed on a ciphertext but might not permit the same requestor to directly decrypt the ciphertext. In some embodiments, ReKey might support rekeying a ciphertext from a key identified by a first KeyID within a first account to a key identified by a KeyID within a second account.

Similarly, the frontend system may implement a policy configuration API which, in an embodiment, enables users to submit requests for configuring policies for the performance of cryptographic operations and for other policy-related operations. Policies may be associated with keys, groups of keys, accounts, users and other logical entities in various embodiments. Example policies, which may be configured via the policy configuration API, are provided below. In an embodiment, the cryptography service policy configuration API includes the following requests:

SetKeyPolicy(KeyID, Policy) Suspend(KeyID, Public Key) Reinstate(KeyID, Private Key)

In an embodiment, the SetKeyPolicy(KeyID, Policy) request may be used to cause the cryptography service to store a policy on the key (or family of keys) identified by the KeyID. A policy may be information that is determinative of whether a requested cryptographic operation can be performed in a particular context. The policy may be encoded in a declarative access control policy language, such as eXtensinble Access Control Markup Language (XACML), Enterprise Privacy Authorization Language (EPAL), Amazon Web Services Access Policy

Language, Microsoft SecPol or any suitable way of encoding one or more conditions (e.g., by encoding an access control list (ACL) or portion thereof) that must be satisfied for a cryptographic operation to be performed. Policies may define what operations can be performed, when the operations can be performed, which entities can make authorized requests for operations to be performed, which information is required for a particular request to be authorized, and the like. In addition, policies may be defined and/or enforced using access control lists, privileges associated with users, and/or operation bitmasks in addition to or instead of the examples given above. Example policies appear below.

In some embodiments the cryptographic service may support a suspend operation, e.g., using a Suspend(KeyID, Public Key) API call. A suspend operation enables the customer of the cryptographic service to deny the operator of the cryptographic service use of or access to a key. This can be useful to customers concerned about covert lawful orders or other circumstances in which the operator of the cryptographic service might be compelled to perform some operation using a key. It may also be useful to customers that wish to lock particular data and render it inaccessible online. In some embodiments, a suspend operation might include receiving a public key from a customer and encrypting the key specified by a given KeyID with the received public key and shredding the key specified by the KeyID, such that the provider is not able to access the suspended key unless the private key associated with the public key is provided, e.g., using a Reinstate(KeyID, Private Key) API call that both specifies the KeyID and includes the private key. In some other embodiments, a suspend operation might involve encrypting a key associated with a specified KeyID using another key managed by the cryptographic service, including without limitation one created for the purpose of the instant suspend operation. The ciphertext produced by this operation can be provided to the customer and not retained within the cryptographic service. The original key identified by the KeyID can then be shredded. The cryptographic service may be operable to receive the provided ciphertext and re-import the suspended key. In some embodiments the ciphertext may be generated in a manner that will prevent the cryptographic service from returning a decrypted version to the customer.

As illustrated in FIG. 3, the cryptography service 300 includes a backend system 302 that itself comprises various components in some embodiments. For example, the backend system in this example includes a request processing system (unit) 304 which may be a subsystem of the cryptography service 300 that is configured to perform operations in accordance with requests received through either the request API 306 or the policy configuration API 308. For example, the request processing component may receive requests received via the request API and the policy configuration API determines whether such requests are authentic and are therefore fulfillable and may fulfill the requests. Fulfilling the request may include, for example, performing and/or having performed cryptographic operations. The request processing unit may be configured to interact with an authentication interface 310 which enables the request processing unit to determine whether requests are authentic. The authentication interface may be configured to interact with an authentication service such as described above. For example, when a request is received by the request processing unit, the request processing unit may utilize the authentication interface to interact with an authentication service which may, if applicable, provide authentication proof that may be used in order to cause a performance of cryptographic operations.

The backend system of the cryptography service 300 also, in this illustrative example, includes a plurality of a security modules 312 (cryptography modules), a policy enforcement module 314, and a coordinator module 316. Returning to FIG. 3, one or more of the security modules may be hardware security modules although, in various embodiments, a security module may be any suitable computer device configured according to have capabilities described herein. Each security module in an embodiment stores a plurality of keys associated with KeyIDs. Each security module may be configured to securely store the keys so as to not be accessible by other components of the cryptography service 300 and/or other components of other systems. In an embodiment, some or all of the security modules are compliant with at least one security standard. For example, in some embodiments, the security modules are each validated as compliant with a Federal Information Processing Standard (FIPS) outlined in FIPS Publication 140-1 and/or 140-2, such as one or more security levels outlined in FIPS Publication 140-2. In addition, in some embodiments, each security module is certified under the Cryptographic Module Validation Program (CMVP). A security module may be implemented as a hardware security module (HSM) or another security module having some or all capabilities of an HSM. In some embodiments, a validated module is used to bootstrap operations. In some embodiments, customers can configure some keys that are stored in and operated on only by validated modules and other keys that are operated on by software. In some embodiments, the performance or cost associated with these various options may differ.

The security modules may be configured to perform cryptographic operations in accordance with instructions provided by the request processing unit. For example, the request processing unit may provide ciphertext and a KeyID to an appropriate security module with instructions to the security module to use a key associated with the KeyID to decrypt the ciphertext and provide in response the plaintext. In an embodiment, the backend system of the cryptography service 300 securely stores a plurality of keys forming a key space. Each of the security modules may store all keys in the key space; however, variations are considered as being within the scope of the present disclosure. For example, each of the security modules may store a subspace of the key space. Subspaces of the key space stored by security modules may overlap so that the keys are redundantly stored throughout the security modules. In some embodiments, certain keys may be stored only in specified geographic regions. In some embodiments, certain keys may be accessible only to operators having a particular certification or clearance level. In some embodiments certain keys may be stored in and used only with a module operated by a particular third party provider under contract with the provider of data storage services. In some embodiments, constructive control of security modules may require that lawful orders seeking to compel use of keys other than as authorized by the customer to involve either additional entities being compelled or additional jurisdictions compelling action. In some embodiments, customers may be offered independent options for the jurisdiction in which their ciphertexts are stored and their keys are stored. In some embodiments, security modules storing keys may be configured to provide audit information to the owner of the keys, and the security modules may be configured such that the generation and providing of audit information not suppressible by the customer. In some embodiments, the security modules may be configured to independently validate a signature generated by the customer such that the provider (e.g., hosting the security modules) is not able to perform operations under keys stored by the security modules. In addition, some security models may store all of the key space and some security modules may store subspaces of the key space. Other variations are also considered as being the scope of the present disclosure. In instances where different security modules store different subspaces of the key space, the request processing unit may be configured such as with a relational table or other mechanism to determine which security module to instruct to perform cryptographic operations in accordance with various requests.

In an embodiment, the policy enforcement module is configured to obtain information from a request processing unit and determine, based at least in part on that information, whether the request received through the API may be performed. For example, when a request to perform cryptographic operation is received through the request API, the request processing unit may interact with the policy enforcement module to determine whether fulfillment of the request is authorized according to any applicable policy such as policy applicable to a specified KeyID in the request and/or other policies such as policy associated with the requestor. If the policy enforcement module allows fulfillment of the request, the request processing unit may, accordingly, instruct an appropriate security module to perform cryptographic operations in accordance with fulfilling the request.

As with all figures described herein, numerous variations are considered as being within the scope of the present disclosure. For example, FIG. 3 shows the policy enforcement module separate from security modules. However, each security module may include a policy enforcement module in addition to or instead of the policy enforcement module illustrated as separate. Thus, each security module may be independently configured to enforce policy. In addition, as another example, each security module may include a policy enforcement module which enforces policies different from policies enforced by a separate policy enforcement module. Numerous other variations are considered as being within the scope of the present disclosure.

As illustrated in FIG. 4 the service frontend 402 also communicates with a policy enforcement service 408 in order to determine whether to fulfill certain requests. The policy enforcement service 408 may be a subsystem of the service 400 that comprises the collection of computing resource collectively configured to enable the service frontend 402 to determine whether to fulfill or deny requests. As with the authentication runtime service 404, the policy enforcement service 408 may communicate with a policy management system (not illustrated in the figure) for the purpose of determining whether fulfillment of a request is in compliance with the policy. For example, when the service frontend 402 receives a request, it may transmit the request or information based at least in part on the request to the policy enforcement service 408. The policy enforcement service 408 may transmit information, via a policy management system interface 410, to a policy management system in order to make the determination. As with the authentication runtime service 404, the policy enforcement service 408 may cache various information in order to enable determinations of whether fulfillment of requests comply with policies without communicating with the policy management system.

In various embodiments, the service frontend 402 also communicates with a service network 412 when received requests are determined to be both authentic and fulfillable in compliance with policy. The service network 412 may be a subsystem of the service 400 comprising a collection of computing resources configured to operate in support of providing a service. For example, in an embodiment whether the service 400 is a virtual computer system service, the service network 412 may comprise a plurality of physical host computing devices that implement virtual computer systems on behalf of customers of the service 400. Requests through the service frontend 402 may relate to operation of the virtual computer systems implemented using the service network 412. For instance, requests may be submitted to the service frontend 402 for the purpose of provisioning, deprovisioning, modifying, or otherwise remotely managing virtual computer systems. In the example of a block data storage service, the service network 412 may comprise a collection of data storage servers with corresponding data storage devices. The service frontend 402 may interact with the service network 412 for various purposes such as allocating storage space to customers, deallocating storage space for customers, and generally in connection with management of one or more virtual block level data storage devices provided by the service 400. In the example of a cryptography service, the service network 412 may include various hardware devices that enable the secure management of cryptographic keys. For example, the service network 412 may comprise a plurality of security modules (e.g., hardware security modules) which may be devices that securely store cryptographic key material. The service network for a cryptography service may also include data storage devices for storing keys on behalf of customers and generally other devices supporting operation of the cryptography service. In the example of an on-demand data storage service, the service network 412, as with the block data storage service, may include data storage servers and corresponding data storage devices. The service network may also include one or more databases in order to operate as key value stores to enable the efficient location of data within the service network 412. The service network 412 may also include other devices (e.g., server computer systems), such as devices that operate to durably, i.e., redundantly store data to perform garbage collection processes and the like. Generally, the service network 412 may include computing resources applicable to the service being provided. Also, while not illustrated, the service network 412 may include appropriate networking devices such as routers, switches, load balancers, and other devices that enable the collective operation of the devices in the service network 412. Of course, the exact resources that are included and their collective configuration will vary in accordance with the various services and the various embodiments in which they are implemented.

FIG. 5 shows an illustrative example of a policy management service 500 in accordance with various embodiments. As illustrated in FIG. 5 the policy management service 500 includes a policy management system frontend 502. The policy management system frontend 502 may be configured such as the service frontend 402 described above in connection with FIG. 4. In particular, the policy management system frontend 502 may be configured to receive customers' requests and provide responses to those requests. The policy management system frontend 502 may also be configured to receive requests from other services, such as for determinations whether requests are fulfillable according to policy. Requests to the policy management system frontend 502 may be various requests in connection with the management of policy or an account of a computing resource provider. For example, a request to the policy management system frontend may be an appropriately configured API call to add a policy, to delete a policy, to change a policy, and generally to perform various actions in connection with policies, such as providing an inventory of policies and the like. Addition and/or change of policy may be accomplished through the receipt of definitions of policies, which may comprise structured sets of information specifying parameters that define corresponding policies. Generally, the policy management system frontend 502 may receive indications of policies, where the indications are definitions of policies themselves (i.e., are encodings of policies in requests), where the indications refer to predefined policies or policies, which may be updated over time (e.g., in accordance with changes made to one or more compliance regimes, such as described below). An illustrative example of how a policy may be organized is discussed below in connection with FIGS. 6-7. Further, while various techniques described herein are illustrated with respect to customers providing their own policies, the policy management system frontend 502 (or another subsystem) may be used by the computing resource service provider to receive indications of policies on behalf of customers. For example, the computing resource service provider may enter into an agreement with a customer whereby the computing resource service provider agrees to manage data in compliance with one or more compliance regimes, such as described below. To comply with the agreement, the computing resource service provider may utilize the policy management system to make effective one or more data transformation (and/or other) policies that enable the computing resource service provider to manage data of the customer in compliance with the compliance regime.

As with other frontend systems described herein, the policy management system frontend 502 may include one or more webservers that perform different operations. For example, in an embodiment, the policy management system frontend 502 may include a webserver that provides, over a network such as the Internet, a console interface for managing policies. The console interface may be a graphical user interface (GUI) with various GUI controls that allow users to perform various actions in connection with the management of policy. Example actions include the definition of policies and submission of defined policies. A user may, for instance, use various GUI controls (drop down menus, check boxes, text entry boxes and the like) for defining a policy and then interact with the GUI to cause the webserver to submit the defined policy. Submission of the defined policy in a request (or, generally, submission of any request transmitted via the GUI), may cause the request to be transmitted from the webserver providing the GUI to another webserver that orchestrates the processing of the requests, such as described below. The other webserver may also be available to customers for submission of requests directly instead of through the webserver providing the GUI. Other variations are also considered as being within the scope of the present disclosure.

As with the service 400 described above in connection with FIG. 4, the policy management service 500 may include an authentication runtime service 504 and an authentication system interface 506 in order to enable the policy management system frontend 502 to fulfill or deny requests as appropriate. As with the service frontend 402, the policy management system frontend 502 may interact (e.g., via appropriately configured communication signals) with various components in order to provide policy management services. For example, as illustrated in FIG. 5, the policy management system frontend 502 may utilize a notification system interface 508 to communicate with a notification system such as described above. The notification system may be used in order to alert users associated with an account of certain types of activity in connection with one or more policies of the account. For example, as noted in more detail below, attempted additions to a set of policies for the account may cause the policy management system frontend 502 to cause the notification system to provide one or more notifications of the attempted policy addition. In this manner, receipt of the notification enables appropriate action to be taken such as when addition of a policy is improper.

The policy management system frontend 502, in an embodiment, utilizes a policy engine 510 which may be a subsystem of the policy management service 500 comprising a collection of computing resources collectively configured to evaluate policy. The policy engine 510 may receive from the policy management system frontend 502 a request that has been received and/or information based at least in part thereon. The policy engine 510 may identify any policies applicable to the request, evaluate whether fulfillment of the request is in compliance with any applicable policies, and provide notification to the policy management system frontend 502 whether fulfillment of the request is in compliance with existing policy. The policy engine 510 may operate in various ways in accordance with various embodiments. For instance, as discussed below, policies may be encoded in policy documents which encode various information regarding principals, such as users, and conditions for the principals' access to computing resources such as cryptographic keys, data objects, logical containers for data objects and other items to which policies apply. The policy engine (or another system working in concert with the policy engine) may use the information in the policies to determine which of a set of policies apply to a particular request. For example, if a request is submitted by a particular identity identified in the request, the policy engine may select policies applicable to that entity. If the request involves a particular resource, the policy engine may select policies that are applicable to the particular resource. In addition, as discussed in more detail below, policy documents may include information that is indicative of whether the policy document is currently effective (i.e., whether one or more policies encoded in the policy document are currently enforced), such as information indicating time when effectiveness of one or more policies encoded in the policy documents begins. Identifying applicable policy documents may include selecting policy documents that are in force and disregarding policy documents that are not in force.

The policy engine may sequentially or otherwise process the policies to determine whether each of the selected policies allow fulfillment of the request. The policy engine may transmit a notification (e.g., in the form of a response to a request to evaluate policy submitted by the policy management frontend system 502) to the policy management frontend system 502 that indicates whether the set of policies for an account corresponding to the policies allows or precludes fulfillment of the request. Additional information, such one or more reasons fulfillment of the request is precluded by policy (e.g., information identifying one or more policies that would be violated by fulfillment of the request and/or information based at least in part on the policies that would be violated by fulfillment of the request).

To enable large scale policy management for multiple users, the policy management service 500 may include a policy repository 512 which may comprise one or more data storage devices that store policy documents that encode policies of the various accounts of computing resource service provider. In some embodiments, the policy repository 512 stores policies for multiple entities (e.g., customers of a computing resource service provider) and, accordingly, stores policies in direct or indirect association with the entities to which the policies correspond.

As illustrated in FIG. 5, the policy management system frontend 502 upon receipt of a request may utilize the authentication runtime service 504 to determine whether the request is authentic. If the request is authentic, the policy management system frontend 502 may submit a policy evaluation request to the policy engine 510 to determine whether the request is in compliance with applicable existing policy. The policy engine 510, if it does not have such information cached, may interact with the policy repository 512 in order to obtain applicable policies. The policy engine 510 may, for example, access all policies for an account associated with the request from the policy repository 512 and identify from the access policies any policies which are applicable to the request. As noted, the policy engine may cache policies in order to avoid communication with the policy repository 512 which may be implemented across a network from the policy engine 510.

For certain types of requests, the policy management system frontend 502 may interact with the policy repository 512. For example, if such actions are allowed by existing policy the policy management system frontend 502 may transmit new policies to the policy repository 512, may transmit commands to the policy repository 512 to delete one or more policies, and/or generally to change a set of policies or an account associated with the request (e.g., by modifying an existing policy).

As noted above, various policies utilized by customers of a computing resource service provider may be encoded in the form of policy documents. The policy document in an embodiment is a document, i.e., organized collection of information, that operates as a container for one or more statements. The policy document may be a Javascript Object Notation (JSON), an eXtensible Markup Language (XML) document, another document using a structured markup language, or other way of organization information. It should be noted that a policy document may encode one or more policies that are defined by corresponding statements. It should also be noted that a policy may include one or more sub-policies. In other words, a policy may comprise a collection of policies. For example, an account of a computing resource service provider may have a policy for a data storage service (“data storage service policy”) that comprises a plurality of individual policies, each defining a specific permission. Additionally, it should be noted that the term “policy” may have different meanings in different contexts. As an example, the term “policy” can have a different meaning when used as an uncountable (mass) noun than when used as a countable (count) noun. For instance, a phrase such as “whether policy allows fulfillment of a request” may be interpreted to mean whether a collection of individual policies allows fulfillment of the request. A statement may include conditions which may be any restrictions or details about the statement. The conditions, for example, may specify circumstances for a policy to be in effect.

While policy documents are used for the purpose of illustration, other ways of encoding policies (e.g., by using relational tables of a relational database to store the various information that would be encoded by a policy document and, generally, any mechanism wherein policy declarations may be maintained) may be used in accordance with various embodiments.

In various embodiments, policies are able to define conditions for changing a set of policies, such as a set of policies for an account of a computing resource service provider. A policy on policy addition (which may be referred to as a “policy addition policy”) may require that, to be fulfillable, a request to add a proposed policy to a set of policies must be configured such that the proposed policy will not become effective (i.e., be enforced by a system that enforces the set of policies) until a future time, such as a specified number of hours into the future measuring from some reference point in time. The policy on policy addition may define the set of principles to which the policy applies, the resources to which the policy applies, one or more other conditions that must be fulfilled, and one or more actions in addition to denial if the conditions are not fulfilled (or, alternatively, allowance if the conditions are fulfilled). An additional action defined by the policy may, for instance, include one or more actions that result in notification of one or more principals of a request to add a policy. A policy administrator may, for instance, allow one or more others to add policies to a set of policies, but may configure a policy on policy addition such that the policy administrator can add policies without a required delay, but the allowed one or more others can only successfully add policies if the policies are added so as to become effective in compliance with a required delay.

A policy management service 500 may also have other components in addition to those illustrated explicitly in the figures. For example, in some embodiments, the policy management service 500 includes a log repository that is used for the purpose of storing logs of policy evaluations. The logs may, for example, include various information indicating requests that were submitted, purported identities submitting the requests, timing information indicating when the requests were submitted, information indicating results of policy determinations made in connection with the requests and the like. Information indicating policy determination for a request may, for instance, identify which policies were triggered by the request, whether the policy allowed fulfillment of the request, any applicable reasons for denial of the request, and the like. For example, logs include attestation values that were submitted with requests and information indicating whether the attestations complied with conditions specified in policies. In some embodiments, the logs contain information about all requests and, in some embodiments, the logs only contain information about failed requests (i.e., requests denied as a result of policy evaluation). Customers may, in some embodiments, transmit API requests to the policy management system frontend 502 to obtain such logs and, therefore, troubleshoot and otherwise utilize the information contained in the logs. As noted above, individual services of a service provider may each contain policy enforcement components. In such embodiments, logs may be aggregated from the individual services, although in some embodiments, logs are obtainable through API calls to the services themselves.

In some embodiments, the policy management service 500 is configured with a learning mode. In such a mode, requests may be transmitted to one or more services of the service provider and the requests may be evaluated independent of policies utilizing computing environment attestations. The requests may nevertheless be submitted with computing environment attestations. The included attestations may be used to configure policies so that, for instance, users are not required to determine and enter attestation values themselves. The policy management service 500 learning mode may be configured to ingest recorded network traffic and use attestations in the observed network traffic to generate attestations for policies. In some embodiments, certain volumes of traffic with a particular attestation may be required before the attestation is identified for use in a policy.

FIG. 6 shows an illustrative example of a policy document in accordance with an embodiment. In an embodiment, the policy document 600 encodes various information relevant to a policy encoded by the policy document. The policy may be encoded in a declarative access control policy language, such as eXtensinble Access Control Markup Language (XACML), Enterprise Privacy Authorization Language (EPAL), Amazon Web Services Access Policy Language, Microsoft SecPol or any suitable way of encoding one or more conditions that must be satisfied for a request to be fulfillable. As illustrated in FIG. 6, the policy document 600 includes a name 602 which may comprise a string for the policy document 600. The name 602 may, for instance, be used to provide a convenient identifier in using human readable terms. As an example, a name 602 may be a string, for instance, to the effect of “MyDataStoragePolicy.” Also as illustrated in FIG. 6, the policy document 600 may include a version 604. The version 604 may be used to track how the policy document 600 changes over time as various requests are received and fulfilled to update policy. Each update to the policy document 600 may cause the version 604 to be updated to a new value. The policy document 600 may also include an issuer 606 which may be an identifier for a user that submitted a request that resulted in creation of the policy document 600 having the current version.

As illustrated in FIG. 6 and noted above, the policy document 600 may include one or more statements 608. Statements in a policy document may be processed using a logical OR. As discussed in more detail below, one or the statements 608 may encode information that indicates a future time when the policy encoded by the policy document 600 is to be effective. For example, the statement may encode a time stamp for a future time at which the policy encoded by the policy document 600 is to be effective. A statement may encode a duration indicating an amount of time that must pass before which the policy document 600 is to be effective where the duration may be measured from some point in time, which may be a global time (e.g., Unix time) or which may be measured from a particular event, such as submission of a request to add a policy that contains the statement or approval of the policy by a policy management system. Generally, the statement may encode any information that immediately or eventually renders determinable a future time at which the policy encoded by the policy document 600 becomes effective. It should be noted that statements may also contain additional information that is not illustrated in the figure, such as a statement identifier that uniquely identifies the statement (globally or within the policy document), and other information which may be used by a policy management system.

As noted above, a statement may be a formal description for a permission or, generally, a formal description of one or more conditions on access to one or more resources. FIG. 7 accordingly, shows an illustrative example of a statement 700 which may be encoded in a policy document, such as described above. As illustrated in FIG. 7, the statement 700 may include information identifying one or more principals 702. A principal may be an entity (e.g., user, computer system, or any entity that may be granted a permission for access to a system or resource within a system) to which the statement 700 applies. As an example, a customer of a computing resource service provider may have an account. The account may be associated with multiple subaccounts each corresponding to a user of the customer. Each user may have a corresponding identifier which may be includable as a principal in a statement. Principals may also be identified in other ways. For example, sets of principals may be identified by an identifier for the set. As an illustrative example, a department in an organization may have a corresponding identifier. A statement may be applicable to the users associated with the department by listing in the statement an identifier for the department. Identifiers for sets of principals may be useful, for instance, when the sets are dynamically changing such as when employees are hired by and/or leave an organization and/or department therein. Generally, sets of principals may be defined based at least in part on characteristics of principals. Identifiers of principals may also be open ended. For example, information may be included that indicate that the statement 700 is applicable to anyone, that is to all users capable of submitting a request on behalf of an account of a computing resource service provider or, generally, all users.

As illustrated in FIG. 7, a statement 700 also identifies one or more resources 704. Resources may be computing resources such as described above. Resources may, for instance, be the subject of the services provided by a computing resource service provider. As an example, a resource may be a virtual computer system, may be a logical data container used to associate data objects together, may be a volume identifier of a block level data storage device, a database, an item stored in a database, a data object (e.g., file) and generally any type of resource which may be provided as a service. In some embodiments, the resources are cryptographic keys, such as cryptographic keys managed by a cryptography service on behalf of customers and/or cryptographic keys used as default keys for one or more data storage services. As with principals, resources may be described using identifiers of sets of resources, which may be defined based at least in part on characteristics of resources. For instance, in some embodiments, virtual computer systems are able to be associated with user generated tags that may be descriptive of a role fulfilled by the virtual computer systems. As an example, a group of virtual computer systems may be associated with a tag “web server.” Resources, accordingly, may be identified by such tags. As another example, a resource may correspond to a logical data container thereby causing the statement 700 to be applicable any data objects stored within the logical data container, i.e., associated with the logical data container. Resources (e.g., data objects) may also be defined by keys used to encrypt the resources. In addition to the foregoing, objects to which policy applies (e.g., principals and resources) may be based at least in part on attributes which may be communicated using Security Assertion Markup Language (SAML) and/or attributes that are determined using a directory.

As illustrated in FIG. 7, a statement 700 may also include one or more conditions. The conditions, in an embodiment, are determinative of whether the statement in the policy document applies in a particular context, i.e. applies to a submitted request in the context in which it was submitted. The conditions may utilize Boolean operators (equal, less than, etc.) to allow evaluation of the conditions over other values in the statement (principal, resource, etc.) and other values in an authorization context, which may or may not be provided in a request for which policy is being evaluated. Condition values can include date, time, the Internet Protocol (IP) address of the requester, an identifier of the request source, a user name, a user identifier, and/or a user agent of the requester and/or other values. Values may also be unique to a service to which the condition applies. Conditions may be logically connected for evaluation using logical connectors such as AND and OR.

Statements may also encode one or more actions 708. An encoded action may represent operations that occur when the condition(s) 706 are fulfilled and/or unfulfilled. Example actions include allowing a request to be fulfilled (e.g., allowing requested access) or denying a request. Other actions include transmission of notification in accordance with information encoded in the statement 700, such as transmission of an electronic mail message to one or more electronic mail addresses specified in the statement 700, publishing a notification to a topic of a notification service and/or other actions. Accordingly, an encoded action 708 may include information sufficient for performing the action. In some embodiments, statements may lack actions when, for example, default actions are applicable. For instance a policy management system may operate so that actions are allowed (or denied) policy cause the actions to be denied (or allowed). Defaults may be system wide or may vary (e.g., with customers selecting defaults).

FIG. 8 shows an illustrative example of a process for processing requests in accordance with an embodiment. The process 800 may be performed by any suitable system or component thereof such as a service described above and/or the service 400 described above. In an embodiment, the process 800 includes receiving 802 a request. The request may be received, for example, as an appropriately configured API call to a frontend system (e.g., comprising a web server) of a system performing the process 800. The API call may be, for instance, in the form of a web service call configured with various parameters applicable to the request. Upon receipt 802 of the request, the process 800 may include determining 804 whether the request is authentic. Determining 804 whether the request is authentic may be performed in any suitable manner. For example, in some embodiments, the request may be signed and, therefore have an associated electronic signature. Accordingly, determining 804 whether the request is authentic may include verifying the electronic signature. Verification of the electronic signature may be done by any suitable system or component thereof. For instance, referring to embodiments described above, an authentication runtime service or authentication service may perform the verification. It should be noted that the verification may be performed by other entities. For instance, in some embodiments, verification is not done in a distributed manner but done by a frontend system such as described above. Generally, any manner in which the authenticity of the request may be determined may be used.

If it is determined 804 that the request is not authentic, the request may be denied 806. Denying the request may be performed in any suitable manner, such as by responding to the request with information indicating the denial by simply taking no action and/or by providing information that indicates one or more reasons why the request is denied and/or additional information which may be necessary to enable addressing the reason for denial. If, however, it is determined 804 that the request is authentic, the process 800 may include accessing 808 one or more applicable policies. Accessing 808 applicable policies may be performed by any suitable system or component thereof, such as by a policy management service described above. Applicable policies may be accessed, for example, by retrieving policy documents from a policy repository such as described above. In some embodiments, timing information indicating when policies become effective is used to select a subset of policies from a set of policies that are applicable (e.g., a set of policies that, without regards to the timing information, would apply to the request). The selected subset may comprise those policies that have timing information indicative of the policies in the subset currently being in effect.

A determination may then be made 810 whether applicable policies allow fulfillment of the request. A determination 810 whether policy allows fulfillment of the request may be performed by any suitable system such as by a policy engine described above. A policy engine or other system determining whether policy allows fulfillment of the request may analyze applicable policies to determine whether the policy allows fulfillment of the request. As discussed, the manner in which the analysis takes place may vary in accordance with various embodiments. For example, applicable policies or, generally, potentially applicable policies may be analyzed in sequence. If a policy in a sequence of policy would be violated by fulfillment of a request, a determination may be made that policy does not allow fulfillment of the request without analyzing the remainder of the sequence (if any). More complex processing may also be performed. For example, if a statement in a policy document indicates that fulfillment of the request would violate policy encoded in the statement, a determination may be made whether any additional policies supersede that policy and allow fulfillment of the request. Generally, the policies may be analyzed in any suitable manner, and the manners may vary in accordance with which the various systems are configured and how policies are encoded. If it is determined 810 that policy does not allow the request to be fulfilled, the process 800 may include denying 806 the request such as described above. If, however, it is determined 810 that policy does allow fulfillment of the request, the request may be fulfilled 812.

As with all processes discussed herein, variations are considered as being within the scope of the present disclosure. For example, the process 800 and other processes described herein may include additional operations in addition to those illustrated and/or discussed herein. For example, in some instances, a system, such as a policy enforcement system may maintain (or have maintained by another system) an audit log of requests. An audit log may be made on a system-wide basis, on a customer-specific basis so that each customer of a service provider has a corresponding audit log or otherwise. The audit log may record requests that were received by a system (e.g., computing resource service) and store information associated with the requests, such as whether the requests were fulfilled, denied, unsuccessfully fulfilled and the like. Other information associated with a request stored in an audit log may include information identifying a submitter of the request (requestor), computing resources affected by the request, information about when the request was received and the like. In some embodiments, when requests are received, information is written to an audit log that identifies one or more services that caused the request to be submitted (e.g, a via set, as discussed in more detail below). For example, if the request was submitted by a first service as a result of having received a request from a second service, information may be written to the audit log that identifies the first and second service. Such information may indicate an order of causation of events that caused the request and/or may include other information.

FIG. 9 is an illustrative, simplified block diagram of an example device system 900 that may be used to practice at least one embodiment of the present disclosure. In various embodiments, the device system 900 may be used to implement any of the systems illustrated herein and described above. For example, the device system 900 may be used to implement an authentication object manager and other applications, such as a browser application, in accordance with various embodiments. As shown in FIG. 9, the device 900 may include one or more processors 902 that may be configured to communicate with and are operatively coupled to a number of peripheral subsystems via a bus subsystem 904. These peripheral subsystems may include a storage subsystem 906, comprising a memory subsystem 908 and a file storage subsystem 910, one or more user interface input devices 912, one or more user interface output devices 914, a network interface subsystem 916, a cryptographic module 924, comprising a memory subsystem 930 and one or more cryptographic processors 932. The peripheral subsystems may also include one or more sensors 934 in addition to sensors of input devices 912. Such sensors may include, but are not limited to, GPS sensors, accelerometers, temperature sensors and others.

The bus subsystem 904 may provide a mechanism for enabling the various components and subsystems of device system 900 to communicate with each other as intended. Although the bus subsystem 904 is shown schematically as a single bus, alternative embodiments of the bus subsystem may utilize multiple busses.

The network interface subsystem 916 may provide an interface to other device systems and networks. The network interface subsystem 916 may serve as an interface for receiving data from and transmitting data to other systems from the device system 900. For example, the network interface subsystem 916 may enable transmission of authentication objects and other information, such as electronic requests to access a system (e.g., receive a webpage) and may enable receipt of responses to the requests, such as webpages or other information. The network interface subsystem 916 may also facilitate the receipt and/or transmission of data on other networks, such as an organizations intranet and/or other networks described below.

The user interface input devices 912 may include one or more buttons, a keyboard, keypad, pointing devices, such as an integrated mouse, trackball, touchpad, or graphics tablet, a scanner, a barcode scanner, a fingerprint scanner, a retinal scanner, a touchscreen incorporated into a display, audio input devices, such as voice recognition systems, microphones, fingerprint readers, retinal scanners and other types of input devices. Further, in some embodiments, input devices may include devices usable to obtain information from other devices, such as long-term or short-term credentials for use in generating an authentication object, as described above. Input devices may include, for instance, magnetic or other card readers, one or more USB interfaces, near field communications (NFC) devices/interfaces and other devices/interfaces usable to obtain data (e.g., long-term or short-term credentials) from other devices. In general, use of the term “input device” is intended to include all possible types of devices and mechanisms for inputting information to the device system 900.

User interface output devices 914, if any, may include a display subsystem, a printer or non-visual displays, such as audio and/or tactile output devices, etc. Generally, the output devices 914 may invoke one or more of any of the five senses of a user. The display subsystem may be a cathode ray tube (CRT), a flat-panel device, such as a liquid crystal display (LCD), light emitting diode (LED) display, or a projection or other display device. In general, use of the term “output device” is intended to include all possible types of devices and mechanisms for outputting information from the device system 900. The output device(s) 914 may be used, for example, to present user interfaces to facilitate user interaction with applications performing processes described herein and variations therein, when such interaction may be appropriate. While a device 900 with user interface output devices is used for the purpose of illustration, it should be noted that the device 900 may operate without an output device, such as when the device 900 is operated in a server rack and, during typical operation, an output device is not needed.

The storage subsystem 906 may provide a computer-readable storage medium for storing the basic programming and data constructs that may provide the functionality of at least one embodiment of the present disclosure. The applications (programs, code modules (i.e., programming modules), instructions) that, when executed by one or more processors, may provide the functionality of one or more embodiments of the present disclosure, may be stored in the storage subsystem 906. These application modules or instructions may be executed by the one or more processors 902. The storage subsystem 906 may additionally provide a repository for storing data used in accordance with the present disclosure. The storage subsystem 906 may comprise a memory subsystem 908 and a file/disk storage subsystem 910.

The cryptographic module 924, which may be a trusted platform module (TPM), includes a memory subsystem 930, including a main random access memory (RAM) 928 for storage of instructions and data during program execution and a read only memory (ROM) 926, in which fixed cryptographic information may be stored, such as a hardware secret stored securely within the device 900 so as to be non-exportable (i.e., inaccessible through any call to the cryptographic module 924). The cryptographic module 924, in some embodiments, operates wholly or partly in compliance with Trusted Computing Group's TPM Main Specification level 2, Version 1.2, Revision 116, TPM Main Specification level 2, Version 1.2, Revision 103 and/or ISO/IEC 11889, which are incorporated herein by reference. The device 900 may also store cryptographic keys in RAM 928 and/or processor registers for temporary cryptographic processing. The cryptographic information stored in memory may be used in combination with cryptographic information obtained via the network interface 916 and/or one or more of the user interface input devices 912. The one or more cryptographic processors may be used to perform cryptographic operations in the device and may include a random number generator, SHA-2 or other hash generator and an encryption-decryption-signature engine.

The one or more cryptographic processors may also be configured to perform one or more encryption/decryption algorithms in accordance with one or more cryptographic algorithms, such as public key and/or private key cryptographic algorithms. For example, as discussed, numerous variations utilize symmetric and/or asymmetric cryptographic primitives. Symmetric key algorithms may include various schemes for performing cryptographic operations on data including block ciphers, stream ciphers and digital signature schemes. Example symmetric key algorithms include, but are not limited to, the advanced encryption standard (AES), the data encryption standard (DES), triple DES (3DES), Serpent, Twofish, blowfish, CAST5, RC4 and the international data encryption algorithm (IDEA). Symmetric key algorithms may also include those used to generate output of one way functions and include, but are not limited to algorithms that utilize hash-based message authentication codes (HMACs), message authentication codes (MACs) in general, PBKDF2 and Bcrypt. Asymmetric key algorithms may also include various schemes for performing cryptographic operations on data. Example algorithms include, but are not limited to those that utilize the Diffie-Hellman key exchange protocol, the digital signature standard (DSS), the digital signature algorithm, the ElGamal algorithm, various elliptic curve algorithms, password-authenticated key agreement techniques, the pallier cryptosystem, the RSA encryption algorithm (PKCS #1), the Cramer-Shoup cryptosystem, the YAK authenticated key agreement protocol, the NTRUEncrypt cryptosystem, the McEliece cryptosystem, and others. Elliptic curve algorithms include the elliptic curve Diffie-Hellman (ECDH) key agreement scheme, the Elliptic Curve Integrated

Encryption Scheme (ECIES), the Elliptic Curve Digital Signature Algorithm (ECDSA), the ECMQV key agreement scheme and the ECQV implicit certificate scheme. Other algorithms and combinations of algorithms are also considered as being within the scope of the present disclosure. Generally, one or more components of the cryptographic module 924 may be configured to collectively perform various operations used generating cryptographically verifiable information for authentication objects.

As noted above, in various embodiments of the present disclosure, hardware secrets are securely stored within the cryptographic module 924. In some embodiments, the cryptographic module is implemented as or may contain a physically unclonable function (PUF), which is a function implemented in physical hardware to use one or more hardware secrets that are based at least in part on physical characteristics of the PUF. As a result, any attempt to obtain a hardware secret may require physical intrusion into the PUF and physical intrusion may alter the physical characteristics of the PUF, thereby destroying the hardware secret. Example PUFs that may be used include PUFs using explicitly-introduced randomness, optical PUFs, coating PUFs, PUFs using intrinsic randomness, delay PUFs, static random access memory (SRAM) PUFs, butterfly PUFs, bistable ring PUFs, magnetic PUFs, metal resistance PUFs and/or other devices whose physical characteristics encode information usable as or for a hardware secret.

FIG. 10 shows an illustrative example of a process 1000 for submitting a request to a service provider in accordance with an embodiment. The process 1000 may be performed by any suitable system such as by a device system 900 discussed above in connection with FIG. 9. In an embodiment the process 1000 includes requesting 1002 an application certificate and a cryptographic module certificate from a cryptographic module. An application certificate may be a collection of information that, in a cryptographically verifiable manner, encodes at least an attestation as to executable code of the application and, in some embodiments, non-executable code, such as resource files associated with the application. A cryptographic module certificate similarly may be a collection of information that, in a cryptographically verifiable manner, encodes an attestation for a cryptographic module. The cryptographic module certificate may, for instance, encode a public key corresponding to a private key stored by the cryptographic module and a digital signature of a trusted authority, such as a manufacturer of the cryptographic module. Requesting 1002 the application certificate and cryptographic module certificate from the cryptographic module may be performed in various ways in accordance with various embodiments. For example, in some embodiments an internal communication is transmitted over a bus to the cryptographic module with a request formatted to cause the cryptographic module to provide the application certificate and cryptographic module certificate from the cryptographic module.

A cryptographic module may generate one or more hash values (referred to also as “hashes”) of the application such as by, for example, computing one or more hashes of executable code of the application and/or of one or more resource files of the application. The cryptographic module may digitally sign information generated, based at least upon the application, using a private key of the public/private key pair. As noted, the public key of the public/private key pair may be encoded in or referenced by the cryptographic module certificate. The cryptographic module certificate may include a digital signature of a trusted authority such as a manufacturer of the cryptographic module. The cryptographic module may provide a digitally signed application certificate comprising the information generated based at least in part on the application and on a cryptographic module certificate to enable verification of the application certificate, utilizing the cryptographic module certificate and verification of the cryptographic module certificate based at least in part on the digital signature thereof.

Accordingly, in an embodiment to the process 1000 includes receiving 1004 the application certificate and cryptographic module certificate from the cryptographic module. The application certificate and cryptographic module certificate may be, for example, encoded by signals transmitted over a bus of a computer system performing the process 1000. The received application certificate and cryptographic module certificate may be stored 1006 in the memory of the system performing the process 1000. When the application certificate and cryptographic module certificate are to be used, the process 1000 may include generating 1008 a request that includes the application certificate and cryptographic module certificate. The application certificate and cryptographic module certificate may, for example, be accessed from memory and be encoded in the request that is generated 1008. Upon generation 1008 of the request, the request may be submitted 1010 to a service provider. The request may be transmitted, for example, through a network interface of the system performing the process 1000 over a network, such as the Internet. The request may be formatted in various ways in accordance with various embodiments. In some examples, for example, the request is formatted as a web service request. The service provider, upon receipt of the submitted 1010 request, may verify the validity of the application certificate and cryptographic module certificate and evaluate any applicable policies based at least in part on information contained in the application certificate.

As with all processes discussed herein, variations are considered as being within the scope of the present disclosure. For example, FIG. 10 shows a process where an application certificate is stored and provided when needed. Alternative embodiments include those where the application certificate is obtained when needed for a request (i.e., when the need is detected). The application certificate may be cached for later use for a period of time for which the application certificate is valid. As another example of a variation considered as being within the scope of the present disclosure, a certificate generated by a cryptographic module may generate attestation based at least in part on multiple applications, firmware, operating system code, locally stored files, sensor measurements and/or information generated based at least in part thereon (e.g., statistical information summarizing sensor measurements) and other information.

As noted, a cryptographic module may be used for the purpose of providing cryptographically verifiable attestations. FIG. 11 shows an illustrative example of a process 1100 which may be used to provide an application certificate in accordance with at least one embodiment. The process 1100 may be performed by any suitable system, such as by a cryptographic module such as a TPM, described above. Further, the process 1100 may be performed as a result of the process 1000 of FIG. 10 or a variation thereof being performed. In an embodiment, the process 1100 includes receiving 1102 a request to generate an application certificate. The request may have been submitted such as described above in connection with FIG. 10. Upon receipt 1102 of the request to generate the application certificate, the process 1100 may include obtaining 1104 application code of an application for which the application certificate is to be generated. Obtaining 1104 the application code may be performed, for example, such as by accessing the application code from memory of a computer system of which a device performing the process 1100 is a component.

A private key corresponding to the device performing the process 1100 may be used 1106 to generate the application certificate. In some examples a hash of the application code is generated and the private key is used to encrypt the hash so as to be decryptable by a public key corresponding to the private key. In other embodiments, a certificate is generated to include one or more hash values of an application (e.g., of executable code and/or non-executable information of the application) and the private key is used to generate a digital signature to be provided with the certificate. Upon generation of the application certificate, the process 1100 may include providing 1108 the generated application certificate, such as over a system bus as described above in connection with FIG. 10.

It should be noted that other operations, while not illustrated in FIG. 11, may also be performed in connection with the process 1100. As noted, for example, a private key of a public/private key pair may be used to generate 1106 the application certificate. A certificate of the device performing the process 1100 may also be included with the application certificate when provided, in order to enable verification of a digital signature of the application certificate, such as to enable a verification of the application certificate through decryption of the hash that was encrypted using the private key.

As noted above, various embodiments of the present disclosure evaluate policy based at least in part on attestations of computing environments from which requests are submitted. FIG. 12 accordingly shows an illustrative example of a process 1200 which may be performed in connection with the valuation of such policies. The process 1200 may, for example, be a sub-process of the process 800 described above in connection with FIG. 8 and in particular as part of determining whether policy allows fulfillment of a received request. Accordingly, the process 1200 may be performed by any suitable system, including the system performing the process 800 described above in connection with FIG. 8 or another system operating in connection with the system performing the process 800 described above (e.g., a separate system operating as a service utilized in performance of the process 800). In an embodiment the process 1200 includes obtaining 1202 an attestation and a cryptographic module certificate. The attestation may be in the form of, for example an application certificate described above. Further, the attestation may include multiple application certificates or a single certificate generated based at least in part on multiple applications. Other information may also be included in the attestation and may be digitally signed using techniques such as described above, that is, by a cryptographic module such as a TPM. In some embodiments, one or more sensor measurements or information derived therefrom is included in the attestation. Other information included in the attestation may include information generated based at least in part on firmware, operating system code and/or other applications. Such attestations may be generated, for example, in accordance with remote attestation techniques noted above. Generally the attestation may be a cryptographically verifiable collection of information of a computing environment from which a request was received, including information about the device from which the request was received and/or information about a network in which the device operates.

Upon obtaining 1202 the attestation and cryptographic module certificate the process 1200 may include determining 1204 whether the cryptographic module certificate is valid. Determining 1204 whether the cryptographic module certificate is valid may be performed such as by verifying a digital signature of the cryptographic module certificate where the digital signature may be that of a trusted authority, such as a trusted certificate authority which may be a manufacturer of the cryptographic module. If determined 1204 that the cryptographic module certificate is valid, the process 1200 may include determining 1206 whether the attestation is sufficient. As noted above, a policy may be defined with one or more conditions applied at least in part to information contained in the attestation. Accordingly determining 1206 whether the attestation is sufficient may include determining whether information in the attestation complies with such conditions of any policies that apply to the request that was received. Further, determining whether the attestation is sufficient may include other operations such as determining whether the attestation is authentic. Determining whether the attestation is authentic may include, for example, verifying a digital signature of the attestation, using public key in the cryptographic module certificate. If determined 1206 that the attestation is authentic, the process may include determining 1208 to fulfill the request for which the process 1200 is being performed. Similarly, if determined that the cryptographic module certificate is invalid, that the attestation is not authentic and/or that the attestation is otherwise insufficient, for example by failing to comply with one of more conditions of one of more applicable policies, the process 1200 may include determining 1210 to deny the request.

As discussed above, various embodiments of the present disclosure allow users to define custom policies, using attestations of computing environments. The policies may be defined in various ways in accordance with various embodiments as noted above. FIG. 13 shows an illustrative example of a graphical user interface 1300 which may be used to generate a custom policy in accordance with at least one embodiment. The graphical user interface 1300 may be provided to a user in various ways in accordance with various embodiments. In some examples, the graphical user interface 1300 is provided as part of a webpage served from a server of a service provider. A user may interact with user interface elements of the graphical user interface 1300, and information recording at least some of that interaction may be transmitted to the server of the service provider to cause a policy defined in accordance with such interactions to be enforced by the service provider. In some examples a webpage is coded such that interaction with the user interface elements of the interface 1300 results in a client device generating a policy document that is, upon the user's direction through corresponding user input, transmitted to the service provider. In other embodiments information about the user's interaction with the interface 1300 is transmitted to the service provider which itself generates a policy document accordingly.

It should be noted that, in embodiments where policies are created through the use of webpages or other interfaces provided for display from remote systems, requests to cause the policies to become effective in the service provider environment may be achieved in various ways. In some embodiments, the webpage is coded such that a browser application displaying the interface 1300 transmits an appropriately configured API call to a policy management system in accordance with code of the webpage used to provide the interface 1300. A computer system executing the browser application may, for example, in accordance with the webpage code, generate an API call that is formatted properly and transmit the API call to an appropriate network endpoint. As another example, information generated as a result of interaction with the interface 1300 may be transmitted to a server that served the webpage to provide the interface 1300 (or another device operating in concert with the server (e.g., as a service to the server) may transmit an API call to cause the policy to become effective. Other variations are also considered as being within the scope of the present disclosure. In addition, the graphical user interface 1300 may be provided in other ways in accordance with other embodiments. For example, a client-side application may be configured with the interface 1300 or a variation thereof.

As noted, the graphical user interface 1300 may include various interface elements that are usable by a user to define policies. It should be noted that while FIG. 13 shows specific examples of particular types of common graphical user interface elements, information may be received through a graphical interface using different elements and using different techniques than those explicitly illustrated and described. In the current example illustrated in FIG. 13, the graphical user interface 1300 includes a drop-down menu 1302 to enable a user to select a type of policy to be defined using the graphical user interface 1300. In this example an identity management policy is the type currently selected in the drop-down menu 1302. An identity management policy may be applicable to multiple services of a computing resource service provider. An identity management policy may, for instance, be a policy that applies generally to sub-accounts (e.g., user accounts) of a customer account of a computing resource service provider. Other example policy types that may be selectable through the drop-down menu 1302 include policy types that are specific to specific services such as a specific data storage service or other services described above.

As noted above, policies may include information that indicates what should happen when conditions of a policy are fulfilled. In this example, the graphical user interface 1300 includes selectable effect, which, in this illustrative example, are in the form of selectable radio buttons 1304. In this example, the radio buttons 1304 are configured such that only one is selectable, although in some embodiments, multiple effects may be selected simultaneously when such effects are non-conflicting. In this example, the selectable effects are “allow” or “deny,” such that when the policy applies, the effect states whether a request should be fulfilled or not. Other effects may also be selectable through the graphical user interface 1300, including but not limited to writing to a specified audit log, transmitting one or more notifications and/or taking one or more user-specified actions which may be in the form of an API call specified through the user interface 1300.

In an embodiment of the graphical user interface 1300 includes a text entry field 1306 for specifying one or more principals to whom or which the policy is to be applied. As noted, a principal may be a user, account, service or other entity to which the policy applies. In this example, a user may provide textual input to specify identifiers of principals. As an alternative, the graphical user interface 1300 may allow selection of principals—for example, by obtaining information from a directory of principals. In an embodiment, a wildcard character, e.g., “*” may be used to specify all principals, which may be a default if no specific principal is specified.

As illustrated in FIG. 13, the graphical user interface 1300 in this example includes a drop-down menu 1308 that is usable by a user to select one or more services to which the policy being defined by the graphical user interface 1300 apply. A radio button 1310 allows for simultaneous selection of all applicable services. The services selectable through the drop-down menu 1308 may include, for example, services described above.

It should be noted that the option selectable through the drop-down menu 1308 and therefore selectable through the radio button 1310 may be contextual. In some embodiments, for example, a customer of a competing resource service provider may have resources only utilizing a proper subset of the set of services offered by the service provider. The selectable options 1308 may be limited to those in which the customer has resources hosted by the service provider. As another example, some service providers may require registration with and/or otherwise activation of specific services, and such services may be selectable through the drop-down menu 1308 if such activation has occurred. Other graphical user interface elements may also be contextual in nature and generally the graphical user interface 1300 may be coded such that selection of one or more parameters using a graphical user interface element causes the graphical user interface 1300 to update other user interface elements as appropriate in accordance with the selection.

In the illustrative example of FIG. 13, the graphical user interface includes a menu 1312 that allows for selection of one or more actions. An action specified through the menu 1312 may correspond to a type of action that should be allowed or denied (in accordance with a specified effect, as described above) when policy defined through the interface 1300 applies. As noted, other effects in addition to or alternative to “allow” and “deny” may be available and the actions specifiable through the menu 1312 may be those actions for which the selected effects occur. As with other user interface elements, a radio button 1314 may allow simultaneous selection of all available actions, where the set of actions selectable may be contextual based at least in part on one or more other selections already made. Example actions include, but are not limited to creating (provisioning) a resource (e.g., virtual machine, data object and/or logical data container), deleting a resource, updating a resource, listing resources, modifying a resource, reading a data storage resource (e.g., data object) and the like. Generally, the actions selectable may correspond to API calls that are able to be made through a service of the computing resource service provider.

In an embodiment, the graphical user interface 1300 includes a text entry field 1316 for inputting one or more resource identifiers which may be strings that identify resources hosted by a computing resource service provider that will enforce the policy being created using the interface 1300. A user may cut and paste one or more resource identifiers into the field 1316 or manually type such identifiers to specify resources to which the policy applies. In some embodiments, if no entries are made into the text entry field 1316, or if a wild card character such as a star is inserted, the policy will be interpreted as to apply to all resources associated with the customer for which the policy is being created. Resources may be specified specifically (e.g., with resource identifiers) or generally, such as by specifying a namespace comprising a plurality of resource identifiers. The set of resource identifiers in a namespace may change over time without the need to update policies specifying the namespace.

As illustrated in FIG. 13, the graphical user interface 1300 includes a sub-interface 1318, enabling user to specify conditions for the policy. If one or more conditions of a policy are met, a system enforcing the policy may cause the selected effect(s) to occur. A user may interact with user interface elements of a sub-interface 1318, and upon selection of an add-condition button 1320, a condition defined using the sub-interface 1318 is added to a display 1322 of conditions that have been created. In the illustrative example of FIG. 13, the defined conditions are illustrated as Condition 1, Condition 2 and Condition 3, indicating that a user has already defined three conditions. It should be noted that the display 1322 of the interface 1300 may include information about the conditions that have been defined, such as the parameters (or information based at least in part thereon) that were specified using the sub-interface 1318 to enable a user to quickly view the conditions that he or she has defined for the policy so far. The conditions may be configured in various ways in accordance with various embodiments. For example, in some embodiments, conditions are automatically joined with a default AND operator so that, for the policy to apply, all defined conditions must be satisfied. Similarly, conditions may be automatically joined with an OR operator so that, for the policy to apply, only one condition need be satisfied (although more than one may apply). In some embodiments, the manner by which conditions are joined in a user specified manner (e.g., with some conditions joined with an AND, other conditions joined with an OR, and blocks of joined conditions joined with AND or OR operators, as specified by a user or by default. It should be noted that the term condition refers to both simple conditions (with one operation to check, e.g.) and complex conditions with multiple sub-conditions which themselves may have sub-conditions.

Turning to the specifics of the illustrative example of the sub-interface 1318, as noted, the sub-interface 1318 includes a variety of user interface elements. In this particular example, a drop-down menu 1324 allows a user to select from a plurality of condition values. In an embodiment, the condition values are values selectable for defining operators for conditions. Example condition values are “equals,” “not equals,” “greater than,” “less than,” Boolean operators and/or other operators usable to define conditions. In some embodiments, each condition value is associated with a certain data type, such as for binary values, resource identifier values, string values, numeric values, date values, IP address values, and the like.

In an embodiment, another drop-down menu 1326 allows for selection of a key, where each of the selectable keys is usable to identify a feature of a request (e.g., information about a request or a parameter of a request). Keys may, for example, represent values that are part of a request. For example, example keys include but are not limited to user agent, source IP address, current time, epic time, whether a request was submitted in accordance with a secure transport protocol, the age of a credential used in multi-factor authentication, a source resource identifier if the request was submitted from another resource such as a computer system hosted by the computing resource service provider, an IP address for an end point of that received request, a protocol used to submit the request, and the like. Keys may also be information about a request but not necessarily included with the request, such as a size (e.g., measured in bytes) of a request, a time when the request is received, a protocol by which the request was submitted, a number of data packets comprising the request, a geographic location from which the request was submitted (which may be determined using a service that maps IP addresses to geographic locations), an Internet Service Provider used to transmit the request and the like. Other possible keys include but are not limited to information that may be provided in an attestation provided with a request. Examples include identifiers of platform configuration registers of a TPM. In this manner, for a user to specify that a particular PCR value has a certain value, a user may select a key corresponding to that PCR identifier. A user configuring a policy may, for instance, determine that an authorized application (e.g., application used to submit a request) has executable code that results in a particular hash value when a particular hash function is applied to the code. A user may use the interface 1300 to, for instance, require that a particular PCR value contain the particular hash value. As noted, conditions may be complex and may be based at least in part on multiple PCR values. Further, as noted, embodiments of the present disclosure apply not only to cryptographically verifiable attestations using a TPM or other cryptographic module, but to other types of attestations. Generally, an attestation may be in the form of a structured format and the sub-interface 1318 may be used to define which values in the structured format must satisfy which conditions.

A text entry field 1328 allows for a user to specify a value with a selected key. Thus, if a user wishes to ensure that a request is submitted with an attestation that a particular PCR value is equal to a certain value known to correspond to a valid application, a user may select a condition for equals or PCR value equals select a key corresponding to an identifier of the particular PCR value of interest and paced or paced type or otherwise input the PCR value into the value field 1328. Similarly, for a general attestation in a particular structured format, the text entry field 1328 may be used to specify which fields in attestation must contain satisfy which condition with respect to the value provided in the field 1328. Once the parameters have set using the elements 1324, 1326, 1328, the user may select the add condition button 1320 to cause the condition to find using the sub-interface 1318 to appear in the display 1322 of the graphical user interface 1300. The user may repeat this process for multiple PCR values (or other fields of an attestation), and when finished, may select an add statement button 1330 to add a statement to a policy. Once statements have been added, a policy may be encoded in a policy document and submitted in an API called to a policy management system for the policy to be enforced by a computing resource service provider that utilizes the policy management system.

As noted above, the various techniques described herein are usable in a wide number of environments, such as a computing resource service provider environment to enable customers of the computing resource service provider to define, through an API, custom policies, using a policy language, for access to resources hosted by the computing resource service provider and associated with the customer. Customers can use such policies to achieve various goals. In some embodiments, for example, a customer of a computing resource provider may utilize computing resources of the computing resource service provider to provide services to their own customers (e.g., members of the public).

As one example, a customer may use a computing resource service provider's resources to provide a service to users where the service includes streaming audio, video or other media to user devices. The customer may provide the user devices with executable code (e.g., in the form of a downloadable stand-alone application, plug-in or other application or script as part of a webpage or other resource) that causes the user devices to generate an attestation in accordance with parameters set by the customer. The executable code may also be for consuming (e.g., viewing) the media of the customer and the executable code may be configured with one or more anti-piracy features, such as a lack of an ability to copy content provided to the user device. The attestation may include information generated based at least in part on the application used to consume media. A policy specified by the customer may require the attestation to have certain values that correspond to unmodified application code. Such a policy may be used, for example to ensure that content is being provided to a device operating in accordance with executable code that has effective anti-piracy protections in place. Similar techniques may also be used by a customer to ensure that documents are provided to a user agent (i.e., device operating in accordance with user agent code) configured to enforce a “no-printing” restriction. Generally, customers may generate policies in accordance with the above techniques to apply a level of control over the computing environments from which requests are submitted and the reasons and uses for such control may vary widely with the various ways in which customers may utilize services of a computing resource service provider.

FIG. 14 illustrates aspects of an example environment 1400 for implementing aspects in accordance with various embodiments. As will be appreciated, although a web-based environment is used for purposes of explanation, different environments may be used, as appropriate, to implement various embodiments. The environment includes an electronic client device 1402, which can include any appropriate device operable to send and/or receive requests, messages or information over an appropriate network 1404 and, in some embodiments, convey information back to a user of the device. Examples of such client devices include personal computers, cell phones, handheld messaging devices, laptop computers, tablet computers, set-top boxes, personal data assistants, embedded computer systems, electronic book readers and the like. The network can include any appropriate network, including an intranet, the Internet, a cellular network, a local area network, a satellite network or any other such network and/or combination thereof. Components used for such a system can depend at least in part upon the type of network and/or environment selected. Protocols and components for communicating via such a network are well known and will not be discussed herein in detail. Communication over the network can be enabled by wired or wireless connections and combinations thereof. In this example, the network includes the Internet, as the environment includes a web server 1406 for receiving requests and serving content in response thereto, although for other networks an alternative device serving a similar purpose could be used as would be apparent to one of ordinary skill in the art.

The illustrative environment includes at least one application server 1408 and a data store 1410. It should be understood that there can be several application servers, layers or other elements, processes or components, which may be chained or otherwise configured, which can interact to perform tasks such as obtaining data from an appropriate data store. Servers, as used herein, may be implemented in various ways, such as hardware devices or virtual computer systems. In some contexts, servers may refer to a programming module being executed on a computer system. As used herein, unless otherwise stated or clear from context, the term “data store” refers to any device or combination of devices capable of storing, accessing and retrieving data, which may include any combination and number of data servers, databases, data storage devices and data storage media, in any standard, distributed, virtual or clustered environment. The application server can include any appropriate hardware, software and firmware for integrating with the data store as needed to execute aspects of one or more applications for the client device, handling some or all of the data access and business logic for an application. The application server may provide access control services in cooperation with the data store and is able to generate content including, but not limited to, text, graphics, audio, video and/or other content usable to be provided to the user, which may be served to the user by the web server in the form of HyperText Markup Language (“HTML”), Extensible Markup Language (“XML”), JavaScript, Cascading Style Sheets (“CSS”) or another appropriate client-side structured language. Content transferred to a client device may be processed by the client device to provide the content in one or more forms including, but not limited to, forms that are perceptible to the user audibly, visually and/or through other senses including touch, taste, and/or smell. The handling of all requests and responses, as well as the delivery of content between the client device 1402 and the application server 1408, can be handled by the web server using PHP: Hypertext Preprocessor (“PHP”), Python, Ruby, Perl, Java, HTML, XML or another appropriate server-side structured language in this example. It should be understood that the web and application servers are not required and are merely example components, as structured code discussed herein can be executed on any appropriate device or host machine as discussed elsewhere herein. Further, operations described herein as being performed by a single device may, unless otherwise clear from context, be performed collectively by multiple devices, which may form a distributed and/or virtual system.

The data store 1410 can include several separate data tables, databases, data documents, dynamic data storage schemes and/or other data storage mechanisms and media for storing data relating to a particular aspect of the present disclosure. For example, the data store illustrated may include mechanisms for storing production data 1412 and user information 1416, which can be used to serve content for the production side. The data store also is shown to include a mechanism for storing log data 1414, which can be used for reporting, analysis or other such purposes. It should be understood that there can be many other aspects that may need to be stored in the data store, such as page image information and access rights information, which can be stored in any of the above listed mechanisms as appropriate or in additional mechanisms in the data store 1410. The data store 1410 is operable, through logic associated therewith, to receive instructions from the application server 1408 and obtain, update or otherwise process data in response thereto. The application server 1408 may provide static, dynamic or a combination of static and dynamic data in response to the received instructions. Dynamic data, such as data used in web logs (blogs), shopping applications, news services and other such applications may be generated by server-side structured languages as described herein or may be provided by a content management system (“CMS”) operating on, or under the control of, the application server. In one example, a user, through a device operated by the user, might submit a search request for a certain type of item. In this case, the data store might access the user information to verify the identity of the user and can access the catalog detail information to obtain information about items of that type. The information then can be returned to the user, such as in a results listing on a web page that the user is able to view via a browser on the user device 1402. Information for a particular item of interest can be viewed in a dedicated page or window of the browser. It should be noted, however, that embodiments of the present disclosure are not necessarily limited to the context of web pages, but may be more generally applicable to processing requests in general, where the requests are not necessarily requests for content.

Each server typically will include an operating system that provides executable program instructions for the general administration and operation of that server and typically will include a computer-readable storage medium (e.g., a hard disk, random access memory, read only memory, etc.) storing instructions that, when executed by a processor of the server, allow the server to perform its intended functions. Suitable implementations for the operating system and general functionality of the servers are known or commercially available and are readily implemented by persons having ordinary skill in the art, particularly in light of the disclosure herein.

The environment, in one embodiment, is a distributed and/or virtual computing environment utilizing several computer systems and components that are interconnected via communication links, using one or more computer networks or direct connections. However, it will be appreciated by those of ordinary skill in the art that such a system could operate equally well in a system having fewer or a greater number of components than are illustrated in FIG. 14. Thus, the depiction of the system 1400 in FIG. 14 should be taken as being illustrative in nature and not limiting to the scope of the disclosure.

The various embodiments further can be implemented in a wide variety of operating environments, which in some cases can include one or more user computers, computing devices or processing devices which can be used to operate any of a number of applications. User or client devices can include any of a number of general purpose personal computers, such as desktop, laptop or tablet computers running a standard operating system, as well as cellular, wireless and handheld devices running mobile software and capable of supporting a number of networking and messaging protocols. Such a system also can include a number of workstations running any of a variety of commercially-available operating systems and other known applications for purposes such as development and database management. These devices also can include other electronic devices, such as dummy terminals, thin-clients, gaming systems and other devices capable of communicating via a network. These devices also can include virtual devices such as virtual machines, hypervisors and other virtual devices capable of communicating via a network.

Various embodiments of the present disclosure utilize at least one network that would be familiar to those skilled in the art for supporting communications using any of a variety of commercially-available protocols, such as Transmission Control Protocol/Internet Protocol (“TCP/IP”), User Datagram Protocol (“UDP”), protocols operating in various layers of the Open System Interconnection (“OSI”) model, File Transfer Protocol (“FTP”), Universal Plug and Play (“UpnP”), Network File System (“NFS”), Common Internet File System (“CIFS”) and AppleTalk. The network can be, for example, a local area network, a wide-area network, a virtual private network, the Internet, an intranet, an extranet, a public switched telephone network, an infrared network, a wireless network, a satellite network and any combination thereof.

In embodiments utilizing a web server, the web server can run any of a variety of server or mid-tier applications, including Hypertext Transfer Protocol (“HTTP”) servers, FTP servers, Common Gateway Interface (“CGI”) servers, data servers, Java servers, Apache servers and business application servers. The server(s) also may be capable of executing programs or scripts in response to requests from user devices, such as by executing one or more web applications that may be implemented as one or more scripts or programs written in any programming language, such as Java®, C, C# or C++, or any scripting language, such as Ruby, PHP, Perl, Python or TCL, as well as combinations thereof. The server(s) may also include database servers, including without limitation those commercially available from Oracle °, Microsoft®, Sybase® and IBM® as well as open-source servers such as MySQL, Postgres, SQLite, MongoDB, and any other server capable of storing, retrieving and accessing structured or unstructured data. Database servers may include table-based servers, document-based servers, unstructured servers, relational servers, non-relational servers or combinations of these and/or other database servers.

The environment can include a variety of data stores and other memory and storage media as discussed above. These can reside in a variety of locations, such as on a storage medium local to (and/or resident in) one or more of the computers or remote from any or all of the computers across the network. In a particular set of embodiments, the information may reside in a storage-area network (“SAN”) familiar to those skilled in the art. Similarly, any necessary files for performing the functions attributed to the computers, servers or other network devices may be stored locally and/or remotely, as appropriate. Where a system includes computerized devices, each such device can include hardware elements that may be electrically coupled via a bus, the elements including, for example, at least one central processing unit (“CPU” or “processor”), at least one input device (e.g., a mouse, keyboard, controller, touch screen or keypad) and at least one output device (e.g., a display device, printer or speaker). Such a system may also include one or more storage devices, such as disk drives, optical storage devices and solid-state storage devices such as random access memory (“RAM”) or read-only memory (“ROM”), as well as removable media devices, memory cards, flash cards, etc.

Such devices also can include a computer-readable storage media reader, a communications device (e.g., a modem, a network card (wireless or wired), an infrared communication device, etc.) and working memory as described above. The computer-readable storage media reader can be connected with, or configured to receive, a computer-readable storage medium, representing remote, local, fixed and/or removable storage devices as well as storage media for temporarily and/or more permanently containing, storing, transmitting and retrieving computer-readable information. The system and various devices also typically will include a number of software applications, modules, services or other elements located within at least one working memory device, including an operating system and application programs, such as a client application or web browser. It should be appreciated that alternate embodiments may have numerous variations from that described above. For example, customized hardware might also be used and/or particular elements might be implemented in hardware, software (including portable software, such as applets) or both. Further, connection to other computing devices such as network input/output devices may be employed.

Storage media and computer readable media for containing code, or portions of code, can include any appropriate media known or used in the art, including storage media and communication media, such as, but not limited to, volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage and/or transmission of information such as computer readable instructions, data structures, program modules or other data, including RAM, ROM, Electrically Erasable Programmable Read-Only Memory (“EEPROM”), flash memory or other memory technology, Compact Disc Read-Only Memory (“CD-ROM”), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other medium which can be used to store the desired information and which can be accessed by the system device. Based on the disclosure and teachings provided herein, a person of ordinary skill in the art will appreciate other ways and/or methods to implement the various embodiments.

The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. It will, however, be evident that various modifications and changes may be made thereunto without departing from the broader spirit and scope of the invention as set forth in the claims.

Other variations are within the spirit of the present disclosure. Thus, while the disclosed techniques are susceptible to various modifications and alternative constructions, certain illustrated embodiments thereof are shown in the drawings and have been described above in detail. It should be understood, however, that there is no intention to limit the invention to the specific form or forms disclosed, but on the contrary, the intention is to cover all modifications, alternative constructions and equivalents falling within the spirit and scope of the invention, as defined in the appended claims.

The use of the terms “a” and “an” and “the” and similar referents in the context of describing the disclosed embodiments (especially in the context of the following claims) are to be construed to cover both the singular and the plural, unless otherwise indicated herein or clearly contradicted by context. The terms “comprising,” “having,” “including” and “containing” are to be construed as open-ended terms (i.e., meaning “including, but not limited to,”) unless otherwise noted. The term “connected,” when unmodified and referring to physical connections, is to be construed as partly or wholly contained within, attached to or joined together, even if there is something intervening. Recitation of ranges of values herein are merely intended to serve as a shorthand method of referring individually to each separate value falling within the range, unless otherwise indicated herein and each separate value is incorporated into the specification as if it were individually recited herein. The use of the term “set” (e.g., “a set of items”) or “subset” unless otherwise noted or contradicted by context, is to be construed as a nonempty collection comprising one or more members. Further, unless otherwise noted or contradicted by context, the term “subset” of a corresponding set does not necessarily denote a proper subset of the corresponding set, but the subset and the corresponding set may be equal.

Conjunctive language, such as phrases of the form “at least one of A, B, and C,” or “at least one of A, B and C,” unless specifically stated otherwise or otherwise clearly contradicted by context, is otherwise understood with the context as used in general to present that an item, term, etc., may be either A or B or C, or any nonempty subset of the set of A and B and C. For instance, in the illustrative example of a set having three members, the conjunctive phrases “at least one of A, B, and C” and “at least one of A, B and C” refer to any of the following sets: {A}, {B}, {C}, {A, B}, {A, C}, {B, C}, {A, B, C}. Thus, such conjunctive language is not generally intended to imply that certain embodiments require at least one of A, at least one of B and at least one of C each to be present.

Operations of processes described herein can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. Processes described herein (or variations and/or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions and may be implemented as code (e.g., executable instructions, one or more computer programs or one or more applications) executing collectively on one or more processors, by hardware or combinations thereof. The code may be stored on a computer-readable storage medium, for example, in the form of a computer program comprising a plurality of instructions executable by one or more processors. The computer-readable storage medium may be non-transitory.

The use of any and all examples, or exemplary language (e.g., “such as”) provided herein, is intended merely to better illuminate embodiments of the invention and does not pose a limitation on the scope of the invention unless otherwise claimed. No language in the specification should be construed as indicating any non-claimed element as essential to the practice of the invention.

Preferred embodiments of this disclosure are described herein, including the best mode known to the inventors for carrying out the invention. Variations of those preferred embodiments may become apparent to those of ordinary skill in the art upon reading the foregoing description. The inventors expect skilled artisans to employ such variations as appropriate and the inventors intend for embodiments of the present disclosure to be practiced otherwise than as specifically described herein. Accordingly, the scope of the present disclosure includes all modifications and equivalents of the subject matter recited in the claims appended hereto as permitted by applicable law. Moreover, any combination of the above-described elements in all possible variations thereof is encompassed by the scope of the present disclosure unless otherwise indicated herein or otherwise clearly contradicted by context.

All references, including publications, patent applications and patents, cited herein are hereby incorporated by reference to the same extent as if each reference were individually and specifically indicated to be incorporated by reference and were set forth in its entirety herein. 

What is claimed is:
 1. A system, comprising: one or more processors that execute instructions to: access information defining a policy that has a computing environment attestation condition such that, evaluation of the policy with respect to a first computing environment attestation causes a different result than evaluation of the policy with respect to a second computing environment attestation different from the first computing environment attestation; enforce the policy such that, when the policy applies to a received request, fulfillment of the request is dependent on a computing environment attestation provided in connection with the request.
 2. The system of claim 1, wherein the one or more processors further execute instructions to verify the attestation based at least in part on data stored in a platform configuration register.
 3. The system of claim 2, wherein the one or more processors verify the attestation further based at least in part on a public cryptographic key associated with a hardware device.
 4. The system of claim 1, wherein the one or more processors deny the request in response to a determination that the computing environment attestation provided in connection with the request fails to satisfy a set of conditions.
 5. The system of claim 1, wherein the computing environment attestation comprises a cryptographic hash of executable instructions.
 6. The system of claim 1, wherein the one or more processors further execute instructions to use a digital certificate provided with the request to verify the computing environment attestation provided with the request.
 7. The system of claim 1, wherein the one or more processors further execute instructions to verify that the computing environment attestation provided in connection with the request was generated using a credential that is inaccessible outside of a trusted execution area of a processor.
 8. A computer-implemented method, comprising: receiving an encoding of a policy, the policy specifying one or more conditions on computing environment attestations; receiving a request and a computing environment attestation; determining that the computing environment attestation satisfies the one or more conditions; and performing one or more operations to cause the request to be fulfilled.
 9. The computer-implemented method of claim 8, wherein determining that the computing environment attestation satisfies the one or more conditions comprises verifying a digital signature of the computing environment attestation.
 10. The computer-implemented method of claim 9, wherein verifying the digital signature of the computing environment attestation is performed using a digital certificate associated with a hardware device.
 11. The computer-implemented method of claim 8, further comprising transmitting a graphical user interface that enables definition of the one or more conditions.
 12. The computer-implemented method of claim 8, wherein the computing environment attestation comprises information from a register of a hardware device.
 13. The computer-implemented method of claim 12, wherein the information indicates a software state.
 14. The computer-implemented method of claim 8, wherein performing one or more operations to cause the request to be fulfilled comprises transmitting a message that indicates compliance with the policy.
 15. A system, comprising: one or more processors that execute instructions to: obtain an attestation of a computing environment associated with the system; generate a request that comprises the attestation of the computing environment; and transmit the request to another system to cause the other system to apply a policy to the attestation of the computing environment to determine how to process the request.
 16. The system of claim 15, wherein obtaining the attestation of the computing environment comprises reading a register of a hardware device of the system.
 17. The system of claim 15, wherein the attestation of the computing environment comprises a cryptographic hash generated using a private key inaccessible outside of a hardware device of the system.
 18. The system of claim 15, wherein the request further comprises a digital certificate usable to verify the attestation of the computing environment.
 19. The system of claim 15, wherein the request is a web service application programming interface request.
 20. The system of claim 15, wherein the attestation of the computing environment is generated based at least in part on executable application code. 